/*
 * @[H]:  Copyright (c) 2021 Phytium Information Technology, Inc. 
 * 
 *  SPDX-License-Identifier: Apache-2.0. 
 * 
 * @Date: 2021-08-17 17:13:36
 * @LastEditTime: 2021-08-23 14:18:06
 * @Description:  Description of file
 * @Modify History: 
 * * * Ver   Who        Date         Changes
 * * ----- ------     --------    --------------------------------------
 */

#include "fgdma.h"
#include "parameters.h"

FGdmaConfig fgdma_configtable[FGDMA_NUM] = {
    {FGDMA_INSTANCE0,
     FGDMA_INSTANCE0_IRQ_NUM,
     FGDMA_INSTANCE0_BASE_ADDRESS,
     {
         {FGDMA_INSTANCE0_CH0_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH1_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH2_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH3_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH4_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH5_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH6_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH7_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH8_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH9_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH10_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH11_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH12_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH13_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH14_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE0_CH15_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
     }},
    {FGDMA_INSTANCE1,
     FGDMA_INSTANCE1_IRQ_NUM,
     FGDMA_INSTANCE1_BASE_ADDRESS,
     {
         {FGDMA_INSTANCE1_CH0_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH1_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH2_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH3_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH4_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH5_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH6_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH7_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH8_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH9_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH10_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH11_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH12_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH13_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH14_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
         {FGDMA_INSTANCE1_CH15_BASE_ADDRESS,
          FGDMA_DEFAULT_PRIORITY,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_4_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES,
          FGDMA_SLAVE_BUSWIDTH_16_BYTES},
     }}};